<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@	taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:url var="baseURI" value="/" />

<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>系统参数设置</title>
	<!-- 引入外部CSS -->
	<link rel="stylesheet" type="text/css" href="${baseURI}resources/easyui/themes/metro-green/easyui.css" />
	<link rel="stylesheet" type="text/css" href="${baseURI}resources/easyui/themes/icon.css" />
	<!-- 引入外部JS -->
	<script type="text/javascript" src="${baseURI}resources/easyui/jquery.min.js"></script>
	<script type="text/javascript" src="${baseURI}resources/easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="${baseURI}resources/js/common.js"></script>
	<script type="text/javascript" src="${baseURI}resources/js/myeasyui.js"></script>
	<script type="text/javascript" src="${baseURI}resources/js/easyui_ext.js"></script>
</head>

<body>
<form id="form_choice">
	<!-- 循环生成5行1列的表格 -->
	<c:forEach items="${choices}" var="choice" varStatus="status">
		<!-- 表格 -->
		<table style="margin:5px 0 0 70px;font-size: 18px; ">
			<thead>
				<tr>
					<th>${status.count}：${choice.choiceContent}</th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td>
						<input type="radio" name="${choice.id}" value="1" />
						<span style="vertical-align: top;">A.${choice.optionA}</span>
					</td>
				</tr>
				<tr>
					<td>
						<input type="radio" name="${choice.id}" value="2" />
						<span style="vertical-align: top;">B.${choice.optionB}</span>
					</td>
				</tr>
				<tr>
					<td>
						<input type="radio" name="${choice.id}" value="3" />
						<span style="vertical-align: top;">C.${choice.optionC}</span>
					</td>
				</tr>
				<tr>
					<td>
						<input type="radio" name="${choice.id}" value="4" />
						<span style="vertical-align: top;">D.${choice.optionD}</span>
					</td>
				</tr>
			</tbody>
		</table>
		<!-- 设置一个默认值，如果考生不作选择，则提交该默认值去后台 -->
		<input type="radio" name="${choice.id}" value="5" checked style="display: none" />
	</c:forEach>
</form>
	
<!-- 静态引入JS文件 -->
<script type="text/javascript"><%@include file="choice_list.ui.js"%></script>
</body>
</html>